package controllers

import (
	"github.com/astaxie/beego"
	"fmt"
)

type Databind struct {
	beego.Controller
}

// http://localhost:3002/api/v1/databind?id=123  把id绑定到变量上
func (this *Databind) Get() {
	str := ""
	this.Ctx.Input.Bind(&str, "id")
	fmt.Println("id = ", str)
	this.Ctx.WriteString("绑定成功")
}
